<?php echo $header; ?>
<div id="main" role="main"> 
            <section id="container">
            	<!-- breadcumbs-->
                <div id="breadcumbs">
                    <ol class="breadcumbs">
                        <li class="first root"><a href="index.php" title="home"></a></li>
                        <li class="item current">SITEMAP</li>
                    </ol>
                </div>
                <!-- /breadcumbs-->
                <div class="heading-tt">
                    <h1 class="fll"><span>Sitemap</h1>
                </div>
                
                <div class="post padtb15">
                	<div id="sitemap">            	
                        <div class="sitemap-col fll first">
                        	<?php
                            	if(isset($categories[0])) {
                                ?>
                                <h3><?php echo $categories[0]['name'];?></h3>
                                
                                <?php
                               		 $cat_lv1_id = $categories[0]['category_id'];
                                     $cat_lv1 = $this->model_catalog_category->getAllCategoriesHtml($cat_lv1_id);
                                     foreach($cat_lv1 as $lv1) 
                                     {
                                     	echo '<h4><a href="'.$lv1['href'].'">'.$lv1['name'].'</a></h4>';
                                        if(count($lv1['child'])>0) 
                                        {
                                       		$cat_lv2 = $lv1['child'];
                                            if(count($cat_lv2)>0) {
                                            echo '<ul class="2level items">';
                                        	foreach($cat_lv2 as $lv2) 
                                   			{
                                            	echo '<li class="level2item"><a href="'.$lv2['href'].'">'.$lv2['name'].'</a>';
                                                 if(count($lv2['child'])>0) 
                                                    {
                                                        $cat_lv3 = $lv2['child'];
                                                        if(count($cat_lv3)>0) {
                                                        	echo '<ul class="3level" style="padding-bottom: 0">';
                                                            foreach($cat_lv3 as $lv3) 
                                                            {
                                                                echo '<li><a href="'.$lv3['href'].'">'.$lv3['name'].'</a></li>';
                                                            }
                                                            echo '</ul>';
                                                         }
                                                        
                                                    }
                                                 echo '</li>';   
                                            }
                                            echo '</ul>';
                                            }
                                            
                                       	}
                                     }
                                }
                            ?>
                            
                            
                        </div>
                        
                        <div class="sitemap-col fll">
                            <?php
                            	if(isset($categories[1])) {
                                ?>
                                <h3><?php echo $categories[1]['name'];?></h3>
                                
                                <?php
                               		 $cat_lv1_id = $categories[1]['category_id'];
                                     $cat_lv1 = $this->model_catalog_category->getAllCategoriesHtml($cat_lv1_id);
                                     foreach($cat_lv1 as $lv1) 
                                     {
                                     	echo '<h4><a href="'.$lv1['href'].'">'.$lv1['name'].'</a></h4>';
                                        if(count($lv1['child'])>0) 
                                        {
                                       		$cat_lv2 = $lv1['child'];
                                            if(count($cat_lv2)>0) {
                                            echo '<ul class="2level items">';
                                        	foreach($cat_lv2 as $lv2) 
                                   			{
                                            	echo '<li class="level2item"><a href="'.$lv2['href'].'">'.$lv2['name'].'</a>';
                                                 if(count($lv2['child'])>0) 
                                                    {
                                                        $cat_lv3 = $lv2['child'];
                                                        if(count($cat_lv3)>0) {
                                                        	echo '<ul class="3level" style="padding-bottom: 0">';
                                                            foreach($cat_lv3 as $lv3) 
                                                            {
                                                                echo '<li><a href="'.$lv3['href'].'">'.$lv3['name'].'</a></li>';
                                                            }
                                                            echo '</ul>';
                                                         }
                                                        
                                                    }
                                                 echo '</li>';   
                                            }
                                            echo '</ul>';
                                            }
                                            
                                       	}
                                     }
                                }
                            ?>
                            
                            <?php
                            	if(isset($categories[2])) {
                                ?>
                                <h3><?php echo $categories[2]['name'];?></h3>
                                
                                <?php
                               		 $cat_lv1_id = $categories[2]['category_id'];
                                     $cat_lv1 = $this->model_catalog_category->getAllCategoriesHtml($cat_lv1_id);
                                     foreach($cat_lv1 as $lv1) 
                                     {
                                     	echo '<h4><a href="'.$lv1['href'].'">'.$lv1['name'].'</a></h4>';
                                        if(count($lv1['child'])>0) 
                                        {
                                       		$cat_lv2 = $lv1['child'];
                                            if(count($cat_lv2)>0) {
                                            echo '<ul class="2level items">';
                                        	foreach($cat_lv2 as $lv2) 
                                   			{
                                            	echo '<li class="level2item"><a href="'.$lv2['href'].'">'.$lv2['name'].'</a>';
                                                 if(count($lv2['child'])>0) 
                                                    {
                                                        $cat_lv3 = $lv2['child'];
                                                        if(count($cat_lv3)>0) {
                                                        	echo '<ul class="3level" style="padding-bottom: 0">';
                                                            foreach($cat_lv3 as $lv3) 
                                                            {
                                                                echo '<li><a href="'.$lv3['href'].'">'.$lv3['name'].'</a></li>';
                                                            }
                                                            echo '</ul>';
                                                         }
                                                        
                                                    }
                                                 echo '</li>';   
                                            }
                                            echo '</ul>';
                                            }
                                            
                                       	}
                                     }
                                }
                            ?>
    
                            <?php
                            	if(isset($categories[2])) {
                                ?>
                                <h3><?php echo $categories[2]['name'];?></h3>
                                
                                <?php
                               		 $cat_lv1_id = $categories[2]['category_id'];
                                     $cat_lv1 = $this->model_catalog_category->getAllCategoriesHtml($cat_lv1_id);
                                     foreach($cat_lv1 as $lv1) 
                                     {
                                     	echo '<h4><a href="'.$lv1['href'].'">'.$lv1['name'].'</a></h4>';
                                        if(count($lv1['child'])>0) 
                                        {
                                       		$cat_lv2 = $lv1['child'];
                                            if(count($cat_lv2)>0) {
                                            echo '<ul class="2level items">';
                                        	foreach($cat_lv2 as $lv2) 
                                   			{
                                            	echo '<li class="level2item"><a href="'.$lv2['href'].'">'.$lv2['name'].'</a>';
                                                 if(count($lv2['child'])>0) 
                                                    {
                                                        $cat_lv3 = $lv2['child'];
                                                        if(count($cat_lv3)>0) {
                                                        	echo '<ul class="3level" style="padding-bottom: 0">';
                                                            foreach($cat_lv3 as $lv3) 
                                                            {
                                                                echo '<li><a href="'.$lv3['href'].'">'.$lv3['name'].'</a></li>';
                                                            }
                                                            echo '</ul>';
                                                         }
                                                        
                                                    }
                                                 echo '</li>';   
                                            }
                                            echo '</ul>';
                                            }
                                            
                                       	}
                                     }
                                }
                            ?>
                        
                        </div>
                        
                        <div class="sitemap-col fll last">
                            <?php
                            	if(isset($categories[4])) {
                                ?>
                                <h3><?php echo $categories[4]['name'];?></h3>
                                
                                <?php
                               		 $cat_lv1_id = $categories[4]['category_id'];
                                     $cat_lv1 = $this->model_catalog_category->getAllCategoriesHtml($cat_lv1_id);
                                     foreach($cat_lv1 as $lv1) 
                                     {
                                     	echo '<h4><a href="'.$lv1['href'].'">'.$lv1['name'].'</a></h4>';
                                        if(count($lv1['child'])>0) 
                                        {
                                       		$cat_lv2 = $lv1['child'];
                                            if(count($cat_lv2)>0) {
                                            echo '<ul class="2level items">';
                                        	foreach($cat_lv2 as $lv2) 
                                   			{
                                            	echo '<li class="level2item"><a href="'.$lv2['href'].'">'.$lv2['name'].'</a>';
                                                 if(count($lv2['child'])>0) 
                                                    {
                                                        $cat_lv3 = $lv2['child'];
                                                        if(count($cat_lv3)>0) {
                                                        	echo '<ul class="3level" style="padding-bottom: 0">';
                                                            foreach($cat_lv3 as $lv3) 
                                                            {
                                                                echo '<li><a href="'.$lv3['href'].'">'.$lv3['name'].'</a></li>';
                                                            }
                                                            echo '</ul>';
                                                         }
                                                        
                                                    }
                                                 echo '</li>';   
                                            }
                                            echo '</ul>';
                                            }
                                            
                                       	}
                                     }
                                }
                            ?>
                            
                            <h3 style="text-transform:uppercase"><?php echo $text_footer_company;?></h3>
                            <ul class="2level items">
                                <li class="level2item"><a href="<?php echo $this->url->link('common/about');?>"><?php echo $text_footer_about_us;?></a></li>
                                <li class="level2item"><a href="<?php echo $this->url->link('information/contact');?>"><?php echo $text_footer_contact_us;?></a></li>
                                <li class="level2item"><a href="<?php echo $this->url->link('common/sitemap');?>"><?php echo $text_footer_sitemap;?></a></li>
                            </ul>
                            
                            <h3 style="text-transform:uppercase"><?php echo $text_footer_more_info;?></h3>
                            <ul class="2level items">
                                <li class="level2item"><a href="<?php echo $this->url->link('common/faq');?>"><?php echo $text_footer_faq;?></a></li>
                                <li class="level2item"><a href="<?php echo $this->url->link('common/warranty');?>"><?php echo $text_footer_warranty;?></a></li>
                                <li class="level2item"><a href="<?php echo $this->url->link('common/term_of_use');?>"><?php echo $text_footer_term;?></a></li>
                            </ul>
                            
                        </div>
                    
                    </div>
                    
                </div>
                
                
            </section>
        </div>
<!-- main content-->        
<?php echo $footer; ?>